package com.qf.device.controller;

import com.qf.device.entity.DeviceType;
import com.qf.device.service.DeviceTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 设备类型表 前端控制器
 * </p>
 *
 * @author 
 * @since 2023-10-26
 */
@RestController
@RequestMapping("/device-type")
@CrossOrigin
public class DeviceTypeController {

    @Autowired
    private DeviceTypeService deviceTypeService;

    /*增加设备中查询所有的设备类型*/
    @PostMapping("findTypeLsit")
    public List<DeviceType> findTypeLsit(){
        return deviceTypeService.list();
    }






}
